package com.zb.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/7/12 0012
 **/
@Data
@ApiModel("微信消息模板内容封装")
public class WxTemplateContent {
    @ApiModelProperty(value = "主健ID，新增不必传，修改时必传")
    private Long id;

    @NotBlank(message = "关键词不能为空")
    @Length(max = 24, message = "关键词长度字符限制在24个以内")
    @ApiModelProperty(value = "关键词名称，需按顺序填写", required = true)
    private String name;
}
